﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace webfrpc.Controllers
{
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            return View();
        }

        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";

            return View();
        }

        public ActionResult Contact()
        {
            ViewBag.Message = "Your contact page.";

            return View();
        }

        /// <summary>
        /// 下载软件
        /// </summary>
        /// <param name="id">1:frpc 2:frps</param>
        /// <returns></returns>
        public ActionResult Down(int id)
        {
            switch (id)
            {
                case 1:
                    return Redirect("/c/开启frpc.exe");
                case 2:
                    return Redirect("/c/开启frps.exe");
                default:
                    return Redirect("/c/开启frpc.exe");
            }
           
        }
    }
}